<?php

class Admin_Profile_EditErrorView extends BlogAdminBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd, 'blog');
		$ro = $this->getContext()->getRouting();
		$vm = $this->getContainer()->getValidationManager();
		/* @var $user User */
		$user = $this->getAttribute('user');
		
		$this->setAttribute('title', 'Edit profile');
		$this->setAttribute('user_type', $user->getUserType());
		$this->setAttribute('errors', $vm->getErrors());
		$this->setAttribute('submit_route', $ro->gen('profile.edit', array('user_id' => $user->getUserId())));
		$this->setAttribute('login_name', $user->getLoginName());
	}
}

?>